package obj.day2.Test;

/**
 * @author げっしょく
 * @date 2021/7/16
 */
public class Compera {
    public void out(){
        System.out.println("笔记本电脑开机中");
        System.out.println("笔记本电脑开机成功");
    }
    public void LianJie(USB c,USB d){
        c.open();
        d.open();
    }
    public void duan(USB c,USB d){
        c.close();
        d.close();
    }
    public void play(String name){
        System.out.println(name + "正在开始游戏");
        System.out.println(name + "游戏结束");
        System.out.println(name + "因为游戏，是的心情极为暴躁");
        System.out.println(name + "因为心情暴躁，所以"+name+"打开了浏览器");
        System.out.println(name + "正在浏览网站");
        System.out.println(name + "关闭了网站" );
        System.out.println(name + "进入贤者时间" );
    }


    public void diu(){
        System.out.println("笔记本电脑关机中");
        System.out.println("笔记本电脑关机成功");
    }
}
